import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import rootReducers from '../reducers'

// 不能直接传一个对象 必须合并后再传一个参数
export default createStore(rootReducers, applyMiddleware(thunk))
